1 #ifndef PERSON_H
2 #define PERSON_H
3
4 #include <
string>
5 #include <iostream>

6
7 using
namespace std;
8
9 class
Person
10 {

11 public
:
12     Person();
13     
string getLastName() const;
14     
string getFirstName() const;
15     
int getDateOfBirth() const;
16     
void setName(const string& newLastName, const string& newFirstName);
17     
void setDateOfBirth(const int newDateOfBirth);
18     
void printName() const;
19
20     ~Person();

21
22 private
:
23     
string lastName, firstName;
24     
int dateOfBirth;
25
26 };
27
28
29 #endif


Gõ tìm kiếm nhanh...